﻿namespace TouchPoint.Render
{
    using System;

    using Windows.UI.Xaml;

    using TouchPoint.Core;
    using TouchPoint.Foundation;

    public abstract class RenderElement:Object
    {

        //---------------------------------------------------------------------------------------------------
        //  当前类的任务
        //  1.存储绘制的位置
        //---------------------------------------------------------------------------------------------------

        /// <summary>
        /// 开始当前的绘制任务
        /// </summary>
        /// <param name="context"></param>
        public abstract void Draw(DrawingContext context);

        /// <summary>
        /// 文档中指定的高度
        /// </summary>
        public RenderLength Height { get; set; }

        /// <summary>
        /// 文档中指定的宽度
        /// </summary>
        public RenderLength Width { get; set; }
                
        /// <summary>
        /// 文档中指定的可视性
        /// </summary>
        public Visibility Visibility { get; set; }
    }
}
